#!/usr/bin/env python
# example base.py

import pygtk
pygtk.require('2.0')
import gtk

class Base:
    def __init__(self):
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
        self.window.set_title("brain bacon")
        self.window.show()
        self.window.connect("delete_event", self.delete_event)
        self.window.connect("destroy", self.destroy)

    def main(self):
        gtk.main()
        
    def delete_event(self, widget, event, data=None):
       
        return False

    def destroy(self, widget, data=None):
        gtk.main_quit()
"""
    def label(self, widget, data=None):
        label = self.gtk.Label("jsw2")
        label.show()
"""          


if __name__ == "__main__":
    base = Base()
    base.main()
    
